<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>

<div class="lupin-start lupin-hero-2 lupin-post-header">
	<div class="lupin-overlay lupin-post" style="background:#222831"></div>
</div>
<div id="lupin-blog-post" style="background:#f5f5f5">
	<div class="container">
		<div class="row">
            <section class="col-md-8">
				<article>
					<div class="lupin-hentry lupin-post-inner clearfix">
						<header class="lupin-entry-header">
							<h1 class="lupin-entry-title text-center"><?php $this->title() ?></h1>
							<div class="lupin-post-meta text-center">
								<span>
								<i class="fa fa-calendar"></i> <time datetime="<?php $this->date('c'); ?>" ><?php $this->date(); ?></time>
				                <i class="fa fa-commenting-o"></i> <?php $this->commentsNum('Comments', '1 Comments', '%d Comments'); ?>
				                <i class="fa fa-eye"></i> 150 Views
				                <i class="fa fa-thumbs-o-up"></i> 150 Times
								</span>
							</div>
						</header>
						<div class="lupin-post-content">
                        <?php $this->content(); ?>
						</div>
						<footer class="lupin-entry-footer clearfix">
							<div class="post-like-donate text-center clearfix" id="post-like-donate">
							<?php if (!empty($this->options->postBtn) && in_array('bitcoinBtn', $this->options->postBtn)): ?>
				   			<a href="<?php $this->options->bitcoinLink() ?>" class="Donate"><i class="fa fa-bitcoin"></i> 打赏</a>
				   			<?php endif; ?>
				   			<a href="javascript:;" data-action="love" data-id="" class="Love" ><i class="fa fa-thumbs-o-up"></i> 点赞</a>
							<?php if (!empty($this->options->postBtn) && in_array('shareBtn', $this->options->postBtn)): ?>
							<a href="javascript:;"  class="Share" ><i class="fa fa-share-alt"></i> 分享</a>
							<div class="share-wrap" style="display: none;">
								<div class="share-group">
									<a href="javascript:;" class="share-plain twitter" onclick="share('qq');" rel="nofollow">
										<div class="icon-wrap">
											<i class="fa fa-qq"></i>
										</div>
									</a>
									<a href="javascript:;" class="share-plain weibo" onclick="share('weibo');" rel="nofollow">
										<div class="icon-wrap">
											<i class="fa fa-weibo"></i>
										</div>
									</a>
									<a href="javascript:;" class="share-plain facebook style-plain" onclick="share('facebook');" rel="nofollow">
										<div class="icon-wrap">
											<i class="fa fa-facebook"></i>
										</div>
									</a>
									<a href="javascript:;" class="share-plain googleplus style-plain" onclick="share('googleplus');" rel="nofollow">
										<div class="icon-wrap">
											<i class="fa fa-google-plus"></i>
										</div>
									</a>
									<a href="javascript:;" class="share-plain weixin pop style-plain" rel="nofollow">
										<div class="icon-wrap">
											<i class="fa fa-weixin"></i>
										</div>
										<div class="share-int">
											<div class="qrcode" data-url="<?php $this->permalink() ?>"></div>
											<p>打开微信“扫一扫”，打开网页后点击屏幕右上角分享按钮</p>
										</div>
									</a>
								</div>
								<script type="text/javascript">
								function share(obj){
									var qqShareURL="http://connect.qq.com/widget/shareqq/index.html?";
									var weiboShareURL="http://service.weibo.com/share/share.php?";
									var facebookShareURL="https://www.facebook.com/sharer/sharer.php?";
									var twitterShareURL="https://twitter.com/intent/tweet?";
									var googleplusShareURL="https://plus.google.com/share?";
									var host_url="<?php $this->permalink() ?>";
									var title="【<?php $this->title() ?>】";
									var qqtitle="<?php $this->title() ?>";
									var _URL;
									if(obj=="qq"){
										_URL=qqShareURL+"url="+host_url+"&title="+qqtitle+"&desc=&summary=&site=vtrois";
									}else if(obj=="weibo"){
										_URL=weiboShareURL+"url="+host_url+"&title="+title;
									}else if(obj=="facebook"){
								 		_URL=facebookShareURL+"u="+host_url;
									}else if(obj=="twitter"){
								 		_URL=twitterShareURL+"text="+title+excerpt+"&url="+host_url;
									}else if(obj=="googleplus"){
								 		_URL=googleplusShareURL+"url="+host_url;
									}
									window.open(_URL);
								}
								</script>
							</div>
							<?php endif; ?>
				    		</div>
							<div class="footer-tag clearfix">
								<div class="pull-left">
								<i class="fa fa-tags"></i>
								<?php $this->tags(', ', true, 'No Tag'); ?>
								</div>
							</div>
						</footer>
					</div>
					<?php if (!empty($this->options->postBtn) && in_array('ccBtn', $this->options->postBtn)): ?>
					<div class="lupin-hentry lupin-copyright text-center clearfix">
						<img alt="知识共享许可协议" src="<?php $this->options->themeUrl('/images/licenses.png'); ?>">
						<h5>本作品采用 <a rel="license nofollow" target="_blank" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享署名-相同方式共享 4.0 国际许可协议</a> 进行许可</h5>
					</div>
					<?php endif; ?>
					<nav class="navigation post-navigation clearfix" role="navigation">
						<div class="nav-previous clearfix">
							<?php $this->thePrev('%s','没有了'); ?>
						</div>
						<div class="nav-next">
							<?php $this->theNext('%s','没有了'); ?>
						</div>
					</nav>
				</article>
			</section>
			<aside id="lupin-widget-area" class="col-md-4 hidden-xs hidden-sm scrollspy">
                <div id="sidebar">
                    <?php $this->need('sidebar.php'); ?>
                </div>
            </aside>
		</div>
	</div>
</div>
<?php $this->need('footer.php'); ?>